package com.pony.iphone.dto;

import jakarta.validation.constraints.NotBlank;

public class SshCommandRequest {
    
    @NotBlank(message = "主机地址不能为空")
    private String host;
    
    @NotBlank(message = "用户名不能为空")
    private String username;
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    private int port = 22;
    
    private String command;

    // 构造函数
    public SshCommandRequest() {}
    
    public SshCommandRequest(String host, String username, String password, String command) {
        this.host = host;
        this.username = username;
        this.password = password;
        this.command = command;
    }
    
    // getter和setter方法
    public String getHost() { return host; }
    public void setHost(String host) { this.host = host; }
    
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }
    
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    
    public int getPort() { return port; }
    public void setPort(int port) { this.port = port; }
    
    public String getCommand() { return command; }
    public void setCommand(String command) { this.command = command; }
}